package com.samoiloff.util.lang {

	/**
	 * @author NM Group
	 */
	public class XMLIdLangItem {
		
		private var _ids: Array;
		private var _value: Object;
		
		public function XMLIdLangItem(xml:XML) {
			_ids = String(xml.@ids).split(',');
			_value = xml;
		}
		
		public function get ids(): Array {
			return _ids;
		}
		
		public function get value(): Object {
			return _value;
		}
		
		public function containsId(id:String):Boolean {
			for (var i:int=0; i<_ids.length; i++) {
				if (_ids[i] == id) {
					return true;
				}
			}
			return false;
		}
	}
}
